package com.sg.model.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 记录实例ID 使用哪个行为，走到第几步
 * 有空间有应用
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_base_assist_behavior_current_step")  //1-1-18底层框架服务内容当前行为步骤表
public class AssistBehaviorCurrentStep implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 内容当前行为步骤ID:
     */
    @TableId(value = "behavior_current_step_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "behaviorCurrentStepId不能为空")
    private String behaviorCurrentStepId;

    /**
     * 当前步骤ID:
     */
    @TableField(value = "step_name_id")
    @Schema(description = "当前步骤ID")
    private String stepNameId;

    /**
     * 步骤使用对象表:
     */
    @TableField(value = "step_obj")
    @NotNull(message = "步骤使用对象表不能为空")
    @Schema(description = "步骤使用对象表")
    private String stepObj;

    /**
     * 步骤内容实例ID:
     */
    @TableField(value = "entity_id")
    @Schema(description = "步骤内容实例ID")
    private String entityId;

    /**
     * 当前用户就职记录ID:
     */
    @TableField(value = "induction_record_id")
    @Schema(description = "当前用户就职记录ID")
    private String inductionRecordId;

    /**
     * 是否作废:
     */
    @TableField(value = "is_valid")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID:
     */
    @TableField(value = "space_id")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID:
     */
    @TableField(value = "app_id")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
